<?php
use think\facade\Route;

Route::rule('smscode','sms/code','post')->allowCrossDomain();
// Route::rule('login','login/index','post')->allowCrossDomain();

Route::resource('user', 'User')->allowCrossDomain();